"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
////9.代理跨域：正向代理和反向代理
var http = require('http');
var httpProxy = require('http-proxy');
var proxy = httpProxy.createProxyServer();
var server = http.createServer(function (req, res) {
    proxy.web(req, res, {
        target: 'http://baidu.com'
    });
});
server.listen(9999, function () {
    console.log('服务器取得成功9999');
});
